package com.model.xmlElement;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.model.xmlElement.output.OutputFormater;

@XmlAccessorType(XmlAccessType.FIELD)
public class DataColumnOutput implements Serializable{
	public static final Logger LOG = LoggerFactory.getLogger(DataColumnOutput.class);
	private static final long serialVersionUID = 1L;
	
	@XmlElement(name = "dataoutput_type")
	private String outputType;
	@XmlElement(name = "dataoutput_index")
	private String outputIndex;
	@XmlElement(name = "dataoutput_default_value")
	private String defaultValue;
	@XmlElement(name = "dataoutput_value_not_null")
	private boolean outputNotNull;
	@XmlElement(name = "dataoutput_formater")
	private OutputFormater outputFormater;
	@XmlElement(name = "dataoutput_column")
	private String outputColumn;
	
	
	public String getOutputColumn() {
		return outputColumn;
	}
	public void setOutputColumn(String outputColumn) {
		this.outputColumn = outputColumn;
	}
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	public boolean isOutputNotNull() {
		return outputNotNull;
	}
	public void setOutputNotNull(boolean outputNotNull) {
		this.outputNotNull = outputNotNull;
	}
	public String getOutputType() {
		return outputType;
	}
	public void setOutputType(String outputType) {
		this.outputType = outputType;
	}
	public String getOutputIndex() {
		return outputIndex;
	}
	public void setOutputIndex(String outputIndex) {
		this.outputIndex = outputIndex;
	}
	public OutputFormater getOutputFormater() {
		return outputFormater;
	}
	public void setOutputFormater(OutputFormater outputFormater) {
		this.outputFormater = outputFormater;
	}
	public DataColumnOutput() {
		super();
	}
	private StringBuilder value;							//我们需要的元素的值
	
	public StringBuilder getValue() {
		return value;
	}
	public void setValue(StringBuilder value) {
		this.value = value;
	}
	public boolean valueIsNull(){
		if(value == null || value.toString().equals("")){
			return true;
		}else{
			return false;
		}
	}
	
}
